package com.majun.service.impl;


import com.majun.bean.User;
import com.majun.service.UserService;
import org.springframework.stereotype.Service;
 
/**
 * @ClassName
 * @Description
 */
@Service
public class UserServiceImpl implements UserService {
 
//	@Autowired
//	private UserMapper userMapper;
 
	@Override
	public User getUserById(Integer id) {
		User user = new User();
		user.setName("john");
		user.setAge(22);
		return user;
//		return userMapper.getUserById(id);
	}

	@Override
	public int add(User user) {
		return 1;
//		return userMapper.add(user);
	}
 
	@Override
	public int update(User user) {
		return 1;
//		return userMapper.update(user);
	}
 
	@Override
	public int delete(Integer id) {
		return 1;
//		return userMapper.delete(id);
	}

	@Override
	public User getUserByName(String name) {
		User user = new User();
		user.setName("john");
		user.setAge(22);
		return user;
//		return null;
	}
}
